const Mock = require('better-mock/dist/mock.mp.js')

Mock.mock('/api/test', {
  phone: '@PHONE'
})

Mock.mock('/wxma/user/login',
{
  "success": true,
  "msg": "请求成功！",
  "data": '@PHONE',
  "code": 9200
});

// 首页接口
Mock.mock('/indexPage/getIndexPageVo', {
    "success": true,
    "msg": "请求成功！",
    "data": {
      "shareDiscountVo": null,
      "packagePriceVo": {
        "packagePriceProductVos": null,
        "title": "套餐特惠",
        "subTitle": "套餐产品展示",
        "originalPrice": 0,
        "packagePrice": 0,
        "remark": "可分享好友，也可自己使用*可多次使用，永久有效",
        "buyPackageNoticeTitle": "购买套餐须知",
        "buyPackageNotice": "1.选择分享好友，购买之后，可以把套餐分享给好友，好友点击分享链接，可获取获取套餐兑换券。*2.选择犒劳自己，购买之后，套餐券直接进入自己账户。",
        "isLimitCount": null,
        "limitCount30Day": null,
        "status": "off_line"
      },
      "newProductVoList": [],
      "everyDayDiscounts": [],
      "productSaleCountVoList": [
        {
          "id": "1a5ccd73d52b49cbb3f2a5da8beb2847",
          "mainImage": 'https://img0.baidu.com/it/u=3088420452,2350416684&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1673974800&t=f078a691877c738537ca1e4a8604ac7c',
          "name": "12",
          "description": "代餐好吃 A好吃 代餐A代餐A好吃代餐A好吃代餐A好吃",
          "salesCount": 0,
          "lowestPrice": 0.14,
          "highestPrice": 0.15,
          "isPackagePrice": null,
          "packageCount": 0,
          "isNew": "false",
          "skuInfoVoList": [
            {
              "id": "642e39146d7d4854a7ec6f13ef6e1dc8",
              "skuName": "12",
              "price": 0.14,
              "stock": null
            },
            {
              "id": "a443189797954d05ba114e2a167c96aa",
              "skuName": "13",
              "price": 0.15,
              "stock": null
            }
          ],
          "spuInfoVoList": [
            {
              "spuType": "温度选择",
              "spuInfoVoList": [
                {
                  "id": "1",
                  "spuName": "微凉",
                  "ordering": null
                },
                {
                  "id": "2",
                  "spuName": "常温",
                  "ordering": null
                }
              ]
            },
            {
              "spuType": "冰量选择",
              "spuInfoVoList": [
                {
                  "id": "5",
                  "spuName": "少冰",
                  "ordering": null
                }
              ]
            },
            {
              "spuType": "甜度选择",
              "spuInfoVoList": [
                {
                  "id": "8",
                  "spuName": "少糖",
                  "ordering": null
                }
              ]
            }
          ]
        },
        {
          "id": "b4b70672931246658159864be8046523",
          "mainImage": "https://nxpz-bucket-product-img-dev.oss-cn-beijing.aliyuncs.com/product/0fc38031-875f-44fc-9be6-26d25e02b460.jpg",
          "name": "芒果多多炒酸奶",
          "description": "代餐A好吃 代餐A好吃， 代餐A好吃代餐A好吃代餐A好吃",
          "salesCount": 0,
          "lowestPrice": 12.6,
          "highestPrice": 15.8,
          "isPackagePrice": null,
          "packageCount": 0,
          "isNew": "false",
          "skuInfoVoList": [
            {
              "id": "9412a12e2a1249abae83db5cec27e317",
              "skuName": "中份",
              "price": 12.6,
              "stock": null
            },
            {
              "id": "ecd25e195b7846fc8adae3f776c5c35b",
              "skuName": "打大份",
              "price": 15.8,
              "stock": null
            }
          ],
          "spuInfoVoList": [
            {
              "spuType": "温度选择",
              "spuInfoVoList": [
                {
                  "id": "1",
                  "spuName": "微凉",
                  "ordering": null
                }
              ]
            },
            {
              "spuType": "冰量选择",
              "spuInfoVoList": [
                {
                  "id": "5",
                  "spuName": "少冰",
                  "ordering": null
                }
              ]
            },
            {
              "spuType": "甜度选择",
              "spuInfoVoList": [
                {
                  "id": "8",
                  "spuName": "少糖",
                  "ordering": null
                }
              ]
            }
          ]
        },
        {
          "id": "ba83360946734ba98f096f693ac9820f",
          "mainImage": "https://img0.baidu.com/it/u=3088420452,2350416684&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1673974800&t=f078a691877c738537ca1e4a8604ac7c",
          "name": "杨枝甘露",
          "description": "代餐A好吃 代餐A好吃 代餐A好吃代餐A好吃代餐A好吃",
          "salesCount": 0,
          "lowestPrice": 16,
          "highestPrice": 19,
          "isPackagePrice": null,
          "packageCount": 0,
          "isNew": "false",
          "skuInfoVoList": [
            {
              "id": "f26449d9b3184d6a8fbc87cbc49ba1ed",
              "skuName": "小杯",
              "price": 16,
              "stock": null
            },
            {
              "id": "80e2d326d1d541a49e9934393cead953",
              "skuName": "大杯",
              "price": 19,
              "stock": null
            }
          ],
          "spuInfoVoList": null
        }
      ],
      "categoryList": [
        {
          "id": "2",
          "storeId": "16",
          "name": "奶茶",
          "rank": 2
        },
        {
          "id": "4",
          "storeId": "16",
          "name": "炒酸奶",
          "rank": 4
        },
        {
          "id": "7",
          "storeId": "16",
          "name": "经典甜品",
          "rank": 7
        }
      ],
      "productListGroupByCategory": [
        {
          "categoryId": "2",
          "categoryName": "奶茶",
          "productVoList": [
            {
              "id": "1a5ccd73d52b49cbb3f2a5da8beb2847",
              "mainImage": "https://img0.baidu.com/it/u=3088420452,2350416684&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1673974800&t=f078a691877c738537ca1e4a8604ac7c",
              "name": "12",
              "description": "代餐好吃 A好吃 代餐A代餐A好吃代餐A好吃代餐A好吃",
              "salesCount": 0,
              "lowestPrice": 0.14,
              "highestPrice": 0.15,
              "isPackagePrice": null,
              "packageCount": 0,
              "isNew": "false",
              "skuInfoVoList": [
                {
                  "id": "642e39146d7d4854a7ec6f13ef6e1dc8",
                  "skuName": "12",
                  "price": 0.14,
                  "stock": null
                },
                {
                  "id": "a443189797954d05ba114e2a167c96aa",
                  "skuName": "13",
                  "price": 0.15,
                  "stock": null
                }
              ],
              "spuInfoVoList": [
                {
                  "spuType": "温度选择",
                  "spuInfoVoList": [
                    {
                      "id": "1",
                      "spuName": "微凉",
                      "ordering": null
                    },
                    {
                      "id": "2",
                      "spuName": "常温",
                      "ordering": null
                    }
                  ]
                },
                {
                  "spuType": "冰量选择",
                  "spuInfoVoList": [
                    {
                      "id": "5",
                      "spuName": "少冰",
                      "ordering": null
                    }
                  ]
                },
                {
                  "spuType": "甜度选择",
                  "spuInfoVoList": [
                    {
                      "id": "8",
                      "spuName": "少糖",
                      "ordering": null
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "categoryId": "4",
          "categoryName": "炒酸奶",
          "productVoList": [
            {
              "id": "b4b70672931246658159864be8046523",
              "mainImage": "https://nxpz-bucket-product-img-dev.oss-cn-beijing.aliyuncs.com/product/0fc38031-875f-44fc-9be6-26d25e02b460.jpg",
              "name": "芒果多多炒酸奶",
              "description": "代餐A好吃 代餐A好吃， 代餐A好吃代餐A好吃代餐A好吃",
              "salesCount": 0,
              "lowestPrice": 12.6,
              "highestPrice": 15.8,
              "isPackagePrice": null,
              "packageCount": 0,
              "isNew": "false",
              "skuInfoVoList": [
                {
                  "id": "9412a12e2a1249abae83db5cec27e317",
                  "skuName": "中份",
                  "price": 12.6,
                  "stock": null
                },
                {
                  "id": "ecd25e195b7846fc8adae3f776c5c35b",
                  "skuName": "打大份",
                  "price": 15.8,
                  "stock": null
                }
              ],
              "spuInfoVoList": [
                {
                  "spuType": "温度选择",
                  "spuInfoVoList": [
                    {
                      "id": "1",
                      "spuName": "微凉",
                      "ordering": null
                    }
                  ]
                },
                {
                  "spuType": "冰量选择",
                  "spuInfoVoList": [
                    {
                      "id": "5",
                      "spuName": "少冰",
                      "ordering": null
                    }
                  ]
                },
                {
                  "spuType": "甜度选择",
                  "spuInfoVoList": [
                    {
                      "id": "8",
                      "spuName": "少糖",
                      "ordering": null
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "categoryId": "7",
          "categoryName": "经典甜品",
          "productVoList": [
            {
              "id": "ba83360946734ba98f096f693ac9820f",
              "mainImage": "https://img0.baidu.com/it/u=3088420452,2350416684&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1673974800&t=f078a691877c738537ca1e4a8604ac7c",
              "name": "杨枝甘露",
              "description": "代餐A好吃 代餐A好吃 代餐A好吃代餐A好吃代餐A好吃",
              "salesCount": 0,
              "lowestPrice": 16,
              "highestPrice": 19,
              "isPackagePrice": null,
              "packageCount": 0,
              "isNew": "false",
              "skuInfoVoList": [
                {
                  "id": "f26449d9b3184d6a8fbc87cbc49ba1ed",
                  "skuName": "小杯",
                  "price": 16,
                  "stock": null
                },
                {
                  "id": "80e2d326d1d541a49e9934393cead953",
                  "skuName": "大杯",
                  "price": 19,
                  "stock": null
                }
              ],
              "spuInfoVoList": null
            }
          ]
        }
      ]
    },
    "code": 9200
})


